<?php
defined( '_VALID_MOS' ) or die('<script>window.location.href="http://www.kinifurniture.com";</script>');
if($active)
	{
		$sqlResult=$dbh->query("select * from anggota where md5(user_id)='".$user_id."'");
		while($sqlRow=mysql_fetch_object($sqlResult))
		{
			$qry="update anggota set active='Y' where md5(user_id)='".$user_id."'";
			$result=$dbh->query($qry);
			if($result)
				echo '<script>location.href="./index.php?show=updateprofile";</script>';
			else
				echo 'Error!!!'; 
		}
	}
?>




